//
//  MonkeyView.m
//  Monkey-Defense
//
//  Created by Robert Carlson on 9/17/11.
//  Copyright 2011 Carlson Systems. All rights reserved.
//

#import "TreeView.h"

@implementation TreeView

int const HEIGHT = 100;
int const WIDTH = 100;

-(id)initWithLocation:(int)x y:(int)y{
  self = [self initWithFrame:CGRectMake(x, y, WIDTH, HEIGHT)];
  if (self) {
  }
  return self;
}

-(id)initWithFrame:(CGRect)frame{
  self = [super initWithFrame:frame];
  if(self){
    self.Unit = [[Tree alloc] init];
  }
  return self;
}

-(void)drawTree:(NSString *)imageName{
  UIImageView *Image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
  [self addSubview:Image];
  [Image release];
}

-(void)dealloc{
  [self.Unit release];
  [super dealloc];
}

@end
